import request from '@/utils/request'
export const reqGetPermissionList = () => request({
  url: '/sys/permission'
})
// 删除权限
export const reqDelPermission = id => request({
  method: 'delete',
  url: `/sys/permission/${id}`
})
// 添加权限
export const reqAddPermission = data => request({
  method: 'post',
  url: '/sys/permission',
  data
})
// 编辑权限
export const reqEditPermission = data => request({
  method: 'put',
  url: `/sys/permission/${data.id}`,
  data
})
// 获取数据详情
export const reqGetPermissionDetail = id => request({
  url: `/sys/permission/${id}`
})
